package board;

import com.opensymphony.xwork2.Action;

public class ModifyAction implements Action {

	private BoardData board;
	private int board_id;
	
	@Override
	public String execute() throws Exception {

		BoardDao dao = BoardDao.getInstance();
		board.setBoard_id(board_id);
		
		dao.updateBoard(board);
		
		return SUCCESS;
	}

	// getter, setter;
	public BoardData getBoard() {
		return board;
	}

	public void setBoard(BoardData board) {
		this.board = board;
	}

	public int getBoard_id() {
		return board_id;
	}

	public void setBoard_id(int board_id) {
		this.board_id = board_id;
	}
	
}
